home *** CD-ROM | disk | FTP | other *** search
-
-
-
- jjjjlllliiiimmmmiiiitttt____ssssttttaaaarrrrttttjjjjoooobbbb((((3333cccc)))) jjjjlllliiiimmmmiiiitttt____ssssttttaaaarrrrttttjjjjoooobbbb((((3333cccc))))
-
-
-
- NNNNAAAAMMMMEEEE
- jlimit_startjob - creates a new job container
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////rrrreeeessssoooouuuurrrrcccceeee....hhhh>>>>
-
- jjjjiiiidddd____tttt jjjjlllliiiimmmmiiiitttt____ssssttttaaaarrrrttttjjjjoooobbbb((((cccchhhhaaaarrrr ****uuuusssseeeerrrrnnnnaaaammmmeeee,,,, uuuuiiiidddd____tttt uuuuiiiidddd,,,, cccchhhhaaaarrrr ****ddddoooommmmaaaaiiiinnnnnnnnaaaammmmeeee))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _j_l_i_m_i_t__s_t_a_r_t_j_o_b function performs all of the tasks necessary to
- creating a new job.
-
- The function takes the _u_s_e_r_n_a_m_e, the user's ID (_u_i_d), and job limits
- _d_o_m_a_i_n_n_a_m_e as arguments and returns the newly created job's job ID.
-
- A list of domains may also be passed to the _j_l_i_m_i_t__s_t_a_r_t_j_o_b function.
- This allows a batch scheduler to have a unique job limits domain. The
- example below shows a domain list for the Miser batch processing system:
-
- jid = jlimit_startjob("bsmith", 7777, "miser:batch");
-
-
- The domain list is a colon-delimited list ("_m_i_s_e_r:_b_a_t_c_h"). The
- _jjjj_llll_iiii_mmmm_iiii_tttt______ssss_tttt_aaaa_rrrr_tttt_jjjj_oooo_bbbb function starts with the first domain on the left; in
- this case, _m_i_s_e_r. If the _m_i_s_e_r domain does not exist, then
- _jjjj_llll_iiii_mmmm_iiii_tttt______ssss_tttt_aaaa_rrrr_tttt_jjjj_oooo_bbbb will try _b_a_t_c_h.
-
- To create a new job, the calling process must have CAP_SETUID and
- CAP_PROC_MGT capability. See the capabilities(4) man page for more
- information on the capability mechanism that provides fine grained
- control over the privileges of a process.
-
- The _j_l_i_m_i_t__s_t_a_r_t_j_o_b function retrieves the job limit and process
- information from the ULDB and populates those limits into the job
- structure.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- showlimits(1), getjlimit(2), makenewjob(2).
-
- EEEERRRRRRRROOOORRRRSSSS
- Under the following conditions, the function _j_l_i_m_i_t__s_t_a_r_t_j_o_b fails and
- set _e_r_r_n_o to:
-
- [ENOPKG] The job limits software is not installed.
-
- [EINVAL] The _mmmm_aaaa_kkkk_eeee_nnnn_eeee_wwww_jjjj_oooo_bbbb(2) system call returns an invalid argument
- to the _j_l_i_m_i_t__s_t_a_r_t_j_o_b function.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, _j_l_i_m_i_t__s_t_a_r_t_j_o_b returns a job ID. If an
- error occurs, a value of -1 is returned and eeeerrrrrrrrnnnnoooo is set to indicate the
- error. If job limits software is not installed, _j_l_i_m_i_t__s_t_a_r_t_j_o_b returns
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- jjjjlllliiiimmmmiiiitttt____ssssttttaaaarrrrttttjjjjoooobbbb((((3333cccc)))) jjjjlllliiiimmmmiiiitttt____ssssttttaaaarrrrttttjjjjoooobbbb((((3333cccc))))
-
-
-
- a value of 0.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-